package com.zfast.yugioh.constant;


import lombok.Getter;

/**
 *  卡片效果枚举
 * @author  zgn
 * @date    2022/2/16 0016
 * 数据库卡牌效果:{#EffectsEnum.value}_影响数值,分割
*/
@Getter
public enum EffectsEnum {

    ck("抽卡","ck"),
    ;


    private String description;
    private String value;

    EffectsEnum(String description, String value) {
        this.description = description;
        this.value = value;
    }

    public static String getDescription(String value) {
        for (EffectsEnum ele : values()) {
            if(ele.getValue().equals(value))
                return ele.getDescription();
        }
        return "卡牌特效未定义!";
    }
}
